package enemies.factory;

import mapControl.GraphicsMapControl;
import elementos.Player;
import enemies.Enemy;
import enemies.factory.builders.EnemyBuilder;
/** "Director" */

public class Barracks {
	private EnemyBuilder enemyBuilder;
	private GraphicsMapControl mapControl;
	private Player player;
 
	public Barracks(GraphicsMapControl mapControl, Player player) {
		this.mapControl = mapControl;
		this.player = player;
	}
	
	public void setEnemyBuilder(EnemyBuilder pb) {
		enemyBuilder = pb;
	}
 
	public Enemy startAndGetEnemy() {
		return enemyBuilder.getEnemy();
	}
 
	public void construct() {
		enemyBuilder.createNewEnemyProduct(mapControl, player);
		enemyBuilder.setName();
		enemyBuilder.buildModel();
		enemyBuilder.buildTexture();
		enemyBuilder.locate();
		enemyBuilder.asignarEstrategia();
	
	
		
	}
	
}
 